package com.作业.Day1;

import com.homwork.Bean.Shopping_cart;

import java.util.Scanner;

public class Homework5 {
    public static void main(String[] args) {
        System.out.println("请输入折扣");
        Scanner scanner = new Scanner(System.in);
        Double i = scanner.nextDouble();
        Shopping_cart shop1 = Shopping_cart.builder()
                .unit_price(245)
                .Shop_name("T恤")
                .build();
        Shopping_cart shop2 = Shopping_cart.builder()
                .unit_price(570)
                .Shop_name("网球鞋")
                .build();
        Shopping_cart shop3 = Shopping_cart.builder()
                .unit_price(320)
                .Shop_name("网球拍")
                .build();
        if (shop1.getUnit_price() * i < 100)
            System.out.println(shop1.getShop_name() + "折扣低于100吗？ true");
        else
            System.out.println(shop1.getShop_name() + "折扣低于100吗？ false");
        if (shop1.getUnit_price() * i < 100)
            System.out.println(shop2.getShop_name() + "折扣低于100吗？  true");
        else
            System.out.println(shop2.getShop_name() + "折扣低于100吗？ false");
        if (shop1.getUnit_price() * i < 100)
            System.out.println(shop1.getShop_name() + "折扣低于100吗？ true");
        else
            System.out.println(shop1.getShop_name() + "折扣低于100吗？false");
    }
}
